#include <QtGui/QApplication>
#include <QtGui/QMessageBox>

#include "raywidget.h"
#include "primitive.h"

int main(int argc, char *argv[])
{

//    Primitive *pm = new GeometricPrimitive();

    QApplication a(argc, argv);
    if (!QGLFormat::hasOpenGL() || !QGLFramebufferObject::hasOpenGLFramebufferObjects()) {
    QMessageBox::information(0, "Ray Tracer Demo",
                 "This system does not support OpenGL/framebuffer objects.");
        return -1;
    }

    RayWidget widget(0);
    widget.resize(800, 800);
    widget.show();
    return a.exec();

}
